package com.jerry.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.concurrent.locks.ReentrantReadWriteLock;

@Data
@Configuration
@ConfigurationProperties("chunk")
public class ChunkConfig {
    private String workSpace;
    @Bean
    public ReentrantReadWriteLock reentrantReadWriteLock(){
        return new ReentrantReadWriteLock();
    }
}
